package com.bookRecommend.service;

import com.bookRecommend.model.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 用户业务层
 */
public interface IUserService {

    List<User> findAllUsers();

    List<User> findUser(String username);

    User findUserByUsernameAndPassword(String user, String password);

    int addUser(String userName, String password, String email);

    int updatePassword(String password, Integer id);

    PageInfo<User> findPage(Integer n, Integer size, String username);

    int removeById(Integer id);
}
